#ifndef __GPRINTER__F
#define __GPRINTER__F

#define PRINTER_SET(_prn, _key, _val) clupsdSetString(&_prn->_key, _val)

typedef struct _clupsd_printer_t {
	char *name;
	char *proxy;
	char *uuid;
	char *gid;
	char *state;
	char *ppd;
	char *description;
  char *location;
} clupsd_printer_t;

int add_printer(gservice* svc, clupsd_printer_t* prn);
int delete_printer(gservice *svc, char* printer_id);
clupsd_printer_t* clupsdNewPrinter(const char *name);
int get_cups_printers(gservice *svc);
int get_cloud_printers(gservice *svc);
clupsd_printer_t *find_cups_printer(const char *name);

#endif
